<?PHP
class webLink extends webControl
{
	var $href = "#";
	var $text = "";
	var $title = 'web::Link';

	function webLink($attrs)
	{
		if (isset($attrs['href']))
		{
			$this->href = $attrs['href'];
		}
		if (isset($attrs['text']))
		{
			$this->text = $attrs['text'];
		}
		if (isset($attrs['title']))
		{
			$this->title = $attrs['title'];
		}
	}
	function Render($writer)
	{
		$writer->Write("<a href=\"$this->href\"");
		if ( !empty($this->title) )
			$writer->Write(" title=\"$this->title\"");
		$writer->Write(">$this->text</a>\n");
	}
}

?>
